package utilities;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * The Class DateTool.
 * 
 * @author Nils Berlijn
 * @author Henderikus Harms
 * @version 1.0
 * @since June 1, 2014
 */
public final class DateTool 
{
	/**
	 * Gets the date.
	 *
	 * @param offSetDays the off set days
	 * @return the date
	 */
	public static String date(int offSetDays)
	{
		Date date = new Date();
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		
	    Calendar calender = Calendar.getInstance();
	    calender.setTime(date);
	    calender.add(Calendar.DAY_OF_MONTH, offSetDays);
	    
		String dateString = dateFormat.format(calender.getTime());
		
		return dateString;			
	}
}